﻿namespace ZhhbSoft.Data.Criterion
{
    public class ItemCollection : NodeCollection
    {
        public Item this[string ColumnName]
        {
            get
            {
                foreach (Node node in _nodes)
                {
                    if (node.Attributes["name"] == ColumnName)
                    {
                        return (Item)node;
                    }
                }
                return null;
            }

        }
    }
}